package cn.com.common.config;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import lombok.Data;

/**
 * 配置文件
 */
@Configuration
@ConfigurationProperties(prefix = "gasstation")
@Data
public class GasstationConfig {
	
	private String gasCarRuleids;
	/**
	 * 项目名称
	 */
	private String projectname;
	
	/**
	 * 项目域名
	 */
	private String domainname;

	/**
	 * 雪花算法使用：工作ID (0~31)
	 */
	@DecimalMax(value = "31")
	@DecimalMin(value = "0")
	private Long workerId = 0L;

	/**
	 * 雪花算法使用：数据中心ID (0~31)
	 */
	@DecimalMax(value = "31")
	@DecimalMin(value = "0")
	private Long datacenterId = 0L;
	
	private String qianxiVideosQueryVideoGetGroupsOfflineUrl;
	
	private String videosQueryVideoGetGroupsOfflineUrl;
	private String videosQueryVideoGetLivePlayUrl;
	private String configCamAIAnalyseSceneChangeAckUrl;
	private String configCamAIAnalyseGetCampicinfoUrl;
	private String upperCloudUrl;
	private String stationId;
	
	private String thirdPartyPass;
	
	private String thirdPartyUser;
	/**
	 * 定时任务
	 *
	 */
    private timedTask timedTask;
    @Data
	public static class timedTask { // 要加static描述符，不然会报异常
		
		private String gasDeletePictureProcessTask;
		private String gasStaytimeProcessTask;
		private String gasStationInfoProcessTask;
		private String gasAnalyseMonthRatioProcessTask;
		private String gasAnalyseRankingProcessTask;
		private String gasStationInfoUpdateProcessTask;
		private String gasStationInfoMonitoringProcessTask;
		private String gasQianxiStationInfoProcessTask;
		private String gasVExJyzMxProcessTask;
		private String gasVExXzqhProcessTask;
		private String gasVExJrjyProcessTask;
		private String gasVExJrjyNyHzProcessTask;
		private String gasStationAndCamForecastProcessTask;
		private String gasForewarningDataProcessTask;
		private String gasStationMonthForecastProcessTask;
		private String gasStationMonthProcessTask;
		private String gasGetCampicinfoProcessTask;
		private String gasZnSynchronizationHistoryDataProcessTask;
		private String sysReconnectMqttProcessTask;
		private String gasForewarningZeroProcessTask;
		
	}



}
